package formula.business.pojo;

import twork.business.pagefilter.PageFilterAdapter;

public class DriverFilter extends PageFilterAdapter {

	private static final long serialVersionUID = 948004401739035087L;
	private String firstname;
	private String lastname;
	private Long levelId;
	private Integer age;
	private Long teamId;

	public DriverFilter() {
		super();
		setSortColumnName("id");
		setPageSize(100);
	}

	@Override
	public String toString() {
		return "DriverFilter@" + this.hashCode() + "[firstname=" + firstname + ", lastname=" + lastname + ", levelId="
				+ levelId + ", age=" + age + ", teamId=" + teamId + "]";
	}

	public Long getTeamId() {
		return teamId;
	}

	public void setTeamId(Long _teamId) {
		teamId = _teamId;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public void setLevelId(Long levelId) {
		this.levelId = levelId;
	}

	public Long getLevelId() {
		return levelId;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getAge() {
		return age;
	}

	public void clear() {
		this.age = null;
		this.firstname = null;
		this.lastname = null;
		this.levelId = null;
		this.teamId = null;
	}
}
